<?php include_once 'admin_check.php';

?>
<?php include_once"header.php";  
?>
    <div id="topbar" class="affix">
      <ol class="breadcrumb">
        <li class="active"><a href="#"><span class="glyphicon glyphicon-home"></span></a></li>
      </ol>
    </div>
    <div class="container">


		<div class="col-md-11">
			<div id="docs-content">
				<h2 class="page-header margin-top-none">个人信息</h2>
				<table class="table">
					<tr>
					<td colspan="2">您好，<?php echo $_SESSION['admin'] ?></td>
					</tr>
					<tr>
					<td width="100">最后登录时间:</td>
					<td><?php echo date('Y-m-d H:i:s',$_SESSION['last_time']) ?></td>
					</tr>
					<tr>
					<td>最后登录IP:</td>
					<td><?php echo getIP(); ?></td>
					</tr>
				</table>

				<h2 class="page-header margin-top-none">系统信息</h2>
				<table class="table">
				  <tr>
				    <td width="100">操作系统：</td>
				    <td><?php echo PHP_OS; ?></td>
				  </tr>
				  <tr>
				    <td>PHP 版本:</td>
				    <td><?php echo PHP_VERSION; ?></td>
				  </tr>
				  <tr>
				    <td>MySQL 版本:</td>
				    <td><?php echo getSqlVersion(); ?></td>
				  </tr>
          <tr>
            <td>文件上传大小: </td>
            <td><?php echo ini_get('upload_max_filesize'); ?></td>
          </tr>
          <tr>
            <td>占用内存大小: </td>
            <td><?php echo fsize(memory_get_usage()); ?></td>
          </tr>
				</table>
			</div>
		</div>
    </div> 
  </section>
  <!-- End: Content --> 
</div>
<!-- End: Main --></body>

</html>